package WorkTest;

public class m {
    public  static void main(String[] args) throws Exception {
        String s="acs";

        System.out.println(s.substring(0,1));
    }
    static void test() throws Exception {
        MyList<String> myList=new MyList<>();
        String[] str=new String[]{"a","b","c","d"};

        for (String s:str){
            myList.put(s);
        }
        for (String s:str){
            myList.put(s+"1");
        }
        for (String s:str){
            myList.put(s+"2");
        }
        myList.set("k",2);
        System.out.println(myList.get(1));
        System.out.println(myList.toString());
    }

}
